<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Simulateur Intersections: SimulationIHM Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Simulateur Intersections
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">SimulationIHM Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="SimulationIHM" -->
<p><a href="class_simulation_i_h_m-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#a4505a025a7a9da7d9a34a6d45d9792f8">SimulationIHM</a> (QWidget *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#a096a16db9abfdf3b9693d3c0278ad005">rafraichirImages</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#a8c84ee29255c4293ab620d40f89a6c69">redessinerPlan</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#af9523b7e274a9afe8042ad0fcff6c97f">effacerImages</a> (const bool clearScene=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#a32dcbeb059bef915f800fe6cc6a245ff">zoom</a> (bool zoomIn)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#aa4b1c815ca1f4040880f2ebf9d5aa368">afficherVelocite</a> (bool afficher=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#ac8189b97583fb1dbb3e20ce69a93988d">afficherFrottements</a> (bool afficher=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#adf9e9a3f35a661557148f7d5f76917d1">afficherForceMoteur</a> (bool afficher=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#a2bd568a8fe0862458328a7cf329e2081">centrer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#ae40716dfd837033160760cdbbde64428">ajouterMarges</a> (const float marge=100.0f)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_simulation_i_h_m.html#aad26b72367abd8347fda8bbaaa377dff">wheelEvent</a> (QWheelEvent *event)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc61358fbb3fdf65345cbbf37fc1ed8b"></a><!-- doxytag: member="SimulationIHM::m_Scene" ref="adc61358fbb3fdf65345cbbf37fc1ed8b" args="" -->
QGraphicsScene&#160;</td><td class="memItemRight" valign="bottom"><b>m_Scene</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abedeb817323b5e28697093768f15fda8"></a><!-- doxytag: member="SimulationIHM::m_IHMsVehicule" ref="abedeb817323b5e28697093768f15fda8" args="" -->
QMap&lt; QString, <a class="el" href="class_vehicule_i_h_m.html">VehiculeIHM</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_IHMsVehicule</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a433a09b070707184c530f15852aafbde"></a><!-- doxytag: member="SimulationIHM::m_IHMsSignalisation" ref="a433a09b070707184c530f15852aafbde" args="" -->
QMap&lt; QString, <a class="el" href="class_signalisation_i_h_m.html">SignalisationIHM</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_IHMsSignalisation</b></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4505a025a7a9da7d9a34a6d45d9792f8"></a><!-- doxytag: member="SimulationIHM::SimulationIHM" ref="a4505a025a7a9da7d9a34a6d45d9792f8" args="(QWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimulationIHM::SimulationIHM </td>
          <td>(</td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructeur, mettre le zoom au niveau 1 et afficher la scène </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="adf9e9a3f35a661557148f7d5f76917d1"></a><!-- doxytag: member="SimulationIHM::afficherForceMoteur" ref="adf9e9a3f35a661557148f7d5f76917d1" args="(bool afficher=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::afficherForceMoteur </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>afficher</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Afficher les vecteurs force moteur pour tous les véhicules de de la simulation </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">afficher</td><td>Afficher ou non les vecteurs </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac8189b97583fb1dbb3e20ce69a93988d"></a><!-- doxytag: member="SimulationIHM::afficherFrottements" ref="ac8189b97583fb1dbb3e20ce69a93988d" args="(bool afficher=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::afficherFrottements </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>afficher</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Afficher les vecteurs frottements pour tous les véhicules de de la simulation </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">afficher</td><td>Afficher ou non les vecteurs </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa4b1c815ca1f4040880f2ebf9d5aa368"></a><!-- doxytag: member="SimulationIHM::afficherVelocite" ref="aa4b1c815ca1f4040880f2ebf9d5aa368" args="(bool afficher=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::afficherVelocite </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>afficher</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Afficher les vecteurs vélocité pour tous les véhicules de de la simulation </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">afficher</td><td>afficher ou non les vecteurs </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae40716dfd837033160760cdbbde64428"></a><!-- doxytag: member="SimulationIHM::ajouterMarges" ref="ae40716dfd837033160760cdbbde64428" args="(const float marge=100.0f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::ajouterMarges </td>
          <td>(</td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>marge</em> = <code>100.0f</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ajouter une marge sur les quatre côtés de l'IHM <a class="el" href="class_simulation.html">Simulation</a> </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">marge</td><td>nombre de pixels de marge </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2bd568a8fe0862458328a7cf329e2081"></a><!-- doxytag: member="SimulationIHM::centrer" ref="a2bd568a8fe0862458328a7cf329e2081" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::centrer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Centrer la fenêtre sur le milieu de la simulation et mettre au niveau moyen de zoom </p>

</div>
</div>
<a class="anchor" id="af9523b7e274a9afe8042ad0fcff6c97f"></a><!-- doxytag: member="SimulationIHM::effacerImages" ref="af9523b7e274a9afe8042ad0fcff6c97f" args="(const bool clearScene=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::effacerImages </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>effacerImage</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Supprimer toutes les images de signalisation et de véhicule de la simulation </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">effacerImage</td><td>Effacer tous les éléments de la scène </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a096a16db9abfdf3b9693d3c0278ad005"></a><!-- doxytag: member="SimulationIHM::rafraichirImages" ref="a096a16db9abfdf3b9693d3c0278ad005" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::rafraichirImages </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Rafraichit le contenu de toutes les images de véhicules et de signalisations de la simulation </p>

</div>
</div>
<a class="anchor" id="a8c84ee29255c4293ab620d40f89a6c69"></a><!-- doxytag: member="SimulationIHM::redessinerPlan" ref="a8c84ee29255c4293ab620d40f89a6c69" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::redessinerPlan </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Redessine toutes les routes et intersections de la simulation </p>

</div>
</div>
<a class="anchor" id="aad26b72367abd8347fda8bbaaa377dff"></a><!-- doxytag: member="SimulationIHM::wheelEvent" ref="aad26b72367abd8347fda8bbaaa377dff" args="(QWheelEvent *event)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::wheelEvent </td>
          <td>(</td>
          <td class="paramtype">QWheelEvent *&#160;</td>
          <td class="paramname"><em>wheel</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gérer les "wheelEvent" sur la simulation, en particulier limiter la vitesse à laquelle l'utilisateur peut se déplacer sur la fenêtre </p>

</div>
</div>
<a class="anchor" id="a32dcbeb059bef915f800fe6cc6a245ff"></a><!-- doxytag: member="SimulationIHM::zoom" ref="a32dcbeb059bef915f800fe6cc6a245ff" args="(bool zoomIn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimulationIHM::zoom </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>zoomAvant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Augmenter ou diminuer le zoom sur la fenêtre simulation par un facteur de 1.2 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">zoomAvant</td><td>zoom avant ou arrière </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>ihm/<a class="el" href="simulationihm_8h_source.html">simulationihm.h</a></li>
<li>ihm/simulationihm.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Dec 1 2011 16:12:42 for Simulateur Intersections by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
